package com.xiao.live.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiao.group.common.utils.PageUtils;
import com.xiao.group.common.utils.Query;

import com.xiao.live.dao.LiveOrderDao;
import com.xiao.live.entity.LiveOrderEntity;
import com.xiao.live.service.LiveOrderService;


@Service("liveOrderService")
public class LiveOrderServiceImpl extends ServiceImpl<LiveOrderDao, LiveOrderEntity> implements LiveOrderService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<LiveOrderEntity> page = this.page(
                new Query<LiveOrderEntity>().getPage(params),
                new QueryWrapper<LiveOrderEntity>()
        );

        return new PageUtils(page);
    }

}